package com.hongdee.scm.accountOfFinance.entity;

import com.hongdee.base.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 公司+数据库名
 */
@Entity
@Table(name = "t_scm_company_match")
public class TScmCompany extends BaseEntity {

    //公司id
    @Column(name = "company_id", length = 32, columnDefinition = "VARCHAR(32) COMMENT '公司id'")
    private String companyId;

    //公司名称
    @Column(name = "company_name", length = 255, columnDefinition = "VARCHAR(255) COMMENT '公司名称'")
    private String companyName;

    //数据库名
    @Column(name = "database_addr", length = 32, columnDefinition = "VARCHAR(32) COMMENT '数据库名'")
    private String databaseddr;

    //地址
    @Column(name = "address", length = 125, columnDefinition = "VARCHAR(125) COMMENT '地址'")
    private String address;

    //ip地址
    @Column(name = "ip_addr", length = 125, columnDefinition = "VARCHAR(125) COMMENT 'IP地址'")
    private String ipAddr;

    //用户
    @Column(name = "userName", length = 125, columnDefinition = "VARCHAR(125) COMMENT '用户'")
    private String userName;

    //密码
    @Column(name = "password", length = 255, columnDefinition = "VARCHAR(255) COMMENT '密码'")
    private String password;

    //密码
    @Column(name = "bmnum", length = 255, columnDefinition = "VARCHAR(255) COMMENT '部门编码'")
    private String bmnum;

    //状态（取数0不取数1）
    @Column(name = "status", length = 32, columnDefinition = "VARCHAR(32) COMMENT '状态'")
    private String status;

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getDatabaseddr() {
        return databaseddr;
    }

    public void setDatabaseddr(String databaseddr) {
        this.databaseddr = databaseddr;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getIpAddr() {
        return ipAddr;
    }

    public void setIpAddr(String ipAddr) {
        this.ipAddr = ipAddr;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getBmnum() {
        return bmnum;
    }

    public void setBmnum(String bmnum) {
        this.bmnum = bmnum;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
